/**
 * 
 */
package domain;

/**
 * @author it-equipment-selection team
 *
 */
public class LocalPrinter extends Printer {

	private boolean usbCableInc;
	private boolean guadalinexComp;

	public LocalPrinter(String brand, String model, double price,
			Article article, Supplier supplier, int ppm, boolean duplex,
			boolean nic, boolean usbCableInc, boolean guadalinexComp) {
		super(brand, model, price, article, supplier, ppm, duplex, nic);
		this.usbCableInc = usbCableInc;
		this.guadalinexComp = guadalinexComp;
	}

	public boolean isUsbCableInc() {
		return usbCableInc;
	}

	public void setUsbCableInc(boolean usbCableInc) {
		this.usbCableInc = usbCableInc;
	}

	public boolean isGuadalinexComp() {
		return guadalinexComp;
	}

	public void setGuadalinexComp(boolean guadalinexComp) {
		this.guadalinexComp = guadalinexComp;
	}

	/* (non-Javadoc)
	 * @see domain.Printer#doValidate()
	 */
	public void doValidate(){
		if (guadalinexComp == true) {
			super.setValid(true);
		} else {
			super.setValid(false);
		}
		super.setValidate(true);
	}

}
